<?php
goto w404V;
K8fpw:
if ($nPhux) {
    goto OVtm4;
}
goto Xpgxs;
oycMw:
pdo_query("ALTER TABLE " . tablename("mii_ang_ucard") . " ADD COLUMN `card_info` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '卡券信息' AFTER `card_on`;");
goto Eb6NK;
fS4oX:
pdo_query(" ALTER TABLE " . tablename("mii_ang_info") . " ADD COLUMN `msg_roof` tinyint(1) UNSIGNED NULL DEFAULT 1 COMMENT '推送平台1,公众平台，2小程序平台' AFTER `openid`;");
goto bQubx;
qzSdV:
if ($x0Ijg) {
    goto F27Ez;
}
goto cvfI9;
HinjJ:
if ($i4y61) {
    goto FtjWD;
}
goto rp8J7;
sEDmw:
pdo_query("ALTER TABLE " . tablename("mii_ang_ucard") . " ADD COLUMN `use` tinyint(1) NOT NULL DEFAULT -1 AFTER `card_info`;");
goto L03fX;
m3qf1:
pdo_query("ALTER TABLE " . tablename("mii_ang_book") . "ADD COLUMN `techname` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL AFTER `techid`;");
goto ohNSl;
xrrOV:
if ($rebnx) {
    goto Zr3hO;
}
goto SO_I2;
EiH4m:
$sql = "CREATE TABLE `ims_mii_ang_siteinfo` (  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  `uniacid` int(10) unsigned NOT NULL,  `siteinfo` text NOT NULL,  PRIMARY KEY (`id`)) ENGINE=MyISAM DEFAULT CHARSET=utf8";
goto wi_LS;
PfEoS:
pdo_run($sql);
goto cPOSk;
iBaga:
if ($oUkgY) {
    goto MA2GU;
}
goto MWuJb;
vbf0o:
if ($cBsBr) {
    goto al7Jp;
}
goto SVC0B;
yZ3Du:
if ($Yvv8B) {
    goto bXh7N;
}
goto UQSXC;
tjAsL:
if ($dj8ZJ) {
    goto JBcCh;
}
goto CJZsG;
pSHsq:
if ($jCHaq) {
    goto aVF_2;
}
goto rBKBt;
ktMzA:
$sql = "CREATE TABLE `ims_mii_ang_mcard` (  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  `uniacid` int(10) unsigned NOT NULL,  `uid` int(10) unsigned NOT NULL,  `name` varchar(32) NOT NULL COMMENT '绑定姓名',  `phone` varchar(32) NOT NULL COMMENT '绑定手机',  `balance` decimal(10,2) NOT NULL COMMENT '余额',  `consumption` decimal(10,2) NOT NULL COMMENT '消费',  `mcard_on` varchar(32) NOT NULL COMMENT '唯一编号',  `activation` tinyint(1) NOT NULL,  `status` tinyint(1) NOT NULL DEFAULT '-1',  PRIMARY KEY (`id`),  KEY `idx_uid` (`uid`) USING BTREE,  KEY `idx_uniacid` (`uniacid`) USING BTREE,  KEY `mcard_on` (`mcard_on`) USING BTREE) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='会员表'";
goto JhWbx;
DnER7:
pdo_query("ALTER TABLE " . tablename("mii_ang_tech") . " ADD COLUMN `timetemplate_id` int(10) UNSIGNED NULL AFTER `addtime`;");
goto kzBq_;
J98yl:
XzPIe:
goto eMPLK;
BXMNY:
$sql = "CREATE TABLE `ims_mii_ang_pageinfo` (  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  `uniacid` int(10) unsigned NOT NULL,  `index` text NOT NULL,  `service` text NOT NULL,  `tech` text NOT NULL,  `personal` text NOT NULL,  `about` text NOT NULL,  `book` text NOT NULL,  `card` text NOT NULL,  `mybook` text NOT NULL,  PRIMARY KEY (`id`)) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='页面参数'";
goto TeSp9;
A7FE4:
if ($C8l9D) {
    goto i0fwe;
}
goto gwv0k;
gUKHn:
ZsiRA:
goto UHikA;
xQQhY:
if ($PfAY7) {
    goto Uc6KE;
}
goto XpHIu;
TiMTh:
pdo_query("ALTER TABLE " . tablename("mii_ang_ucard") . " ADD COLUMN `uniacid` int(10) UNSIGNED NOT NULL AFTER `id`;");
goto ertak;
vcNzv:
if ($LvHvL) {
    goto OhBB4;
}
goto ky9FI;
Sznd3:
if ($jYMLH) {
    goto GRJZq;
}
goto ywiM1;
madWa:
pdo_query("ALTER TABLE " . tablename("mii_ang_info") . " ADD COLUMN `admin_phone` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL AFTER `msg_roof`;");
goto jYJRC;
WxvGs:
function tag()
{
    goto JabAB;
    VTo5e:
    lq9TW:
    goto bm4au;
    MFc9_:
    $tag = pdo_fetchall("SELECT id,categoryname  FROM " . tablename("mii_ang_class") . "WHERE uniacid=:uniacid ORDER BY `category_order` DESC", array(":uniacid" => $_W["uniacid"]));
    goto CgdNE;
    CgdNE:
    foreach ($tag as $k => $t) {
        $arrtag[] = "\"" . $t["id"] . "," . $t["categoryname"] . "\"";
        eW_2W:
    }
    goto GTBCQ;
    VjUNN:
    $arrtag = implode(",", $arrtag);
    goto nhvkA;
    hrC_q:
    $res = file_put_contents($save_avatar . $filename, $content);
    goto wm5kG;
    pXF8i:
    $save_avatar = MODULE_ROOT . "/public/" . $_W["uniacid"] . "/";
    goto iiKPr;
    bm4au:
    $filename = "databese.js";
    goto hrC_q;
    JabAB:
    global $_W;
    goto MFc9_;
    nhvkA:
    noK0J:
    goto KuTQ6;
    Dokr8:
    mkdir($save_avatar, 511, true);
    goto VTo5e;
    GTBCQ:
    Xy1z9:
    goto I03eF;
    I03eF:
    $fcbyl = empty($arrtag);
    goto CEZ3C;
    CEZ3C:
    if ($fcbyl) {
        goto noK0J;
    }
    goto VjUNN;
    f1x0y:
    if ($bOL8W) {
        goto lq9TW;
    }
    goto Dokr8;
    iiKPr:
    $bOL8W = is_dir($save_avatar);
    goto f1x0y;
    KuTQ6:
    $content .= "var MQ_jobtag=new Array(" . $arrtag . ");";
    goto pXF8i;
    wm5kG:
}
goto iN9f0;
Kkzs9:
$MzSnE = pdo_tableexists("mii_ang_timeslot");
goto pCmYX;
cDn1g:
$FffW6 = pdo_tableexists("mii_ang_info");
goto uoz86;
mQIcR:
pdo_query("ALTER TABLE " . tablename("mii_ang_order") . " ADD COLUMN `card_id` int(10) UNSIGNED NOT NULL COMMENT '卡券ID' AFTER `order_type`;");
goto Gz_mH;
WeUry:
yM1xT:
goto s9pAr;
OdjNL:
pdo_query("ALTER TABLE " . tablename("mii_ang_info") . " ADD COLUMN `is_pay` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 AFTER `msg_roof`;");
goto A49Ly;
wfWCN:
if ($FH8Rr) {
    goto eXu7I;
}
goto F6j9e;
wtj4U:
pdo_query("ALTER TABLE " . tablename("mii_ang_order") . " ADD COLUMN `order_type` tinyint(1) UNSIGNED NOT NULL COMMENT '1:免费预约2:支付预约' AFTER `pay_time`;");
goto sOsR8;
OU7jB:
if ($w1kxy) {
    goto XzPIe;
}
goto sdb1K;
sk9OM:
if ($QUco1) {
    goto NCfVG;
}
goto zW3gB;
rF79t:
C5G7B:
goto BP0Fy;
cWrsA:
$plQAX = pdo_fieldexists("mii_ang_info", "msg_roof");
goto nnR25;
jrVPn:
if ($dvUxx) {
    goto dxhbH;
}
goto C2LBW;
hLkaw:
$LvHvL = pdo_tableexists("mii_ang_class");
goto vcNzv;
zFBff:
if ($SEoXL) {
    goto Jfseb;
}
goto uct2K;
d7C7t:
if ($xs_lx) {
    goto PLu1H;
}
goto rWSZQ;
zg12Q:
if ($Yvv8B) {
    goto CPz30;
}
goto NOyu9;
bQubx:
VqIFA:
goto xGbZD;
YouXI:
pdo_query("ALTER TABLE " . tablename("mii_ang_info") . " ADD COLUMN `admin_phone` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL AFTER `msg_roof`;");
goto b_cL7;
O7ysP:
$KVkS5 = pdo_fieldexists("mii_ang_ucard", "roof");
goto y0Q60;
ZCw36:
$xs_lx = pdo_tableexists("mii_ang_timetemplate");
goto d7C7t;
wi_LS:
pdo_run($sql);
goto V7zo6;
IR52z:
if ($rebnx) {
    goto Eoitz;
}
goto Cnxs_;
pCmYX:
if ($MzSnE) {
    goto T0Z3G;
}
goto L1Q5L;
c_lGI:
pyCoX:
goto D779P;
mHZsf:
pdo_query("ALTER TABLE " . tablename("mii_ang_ucard") . " ADD COLUMN `cid` int(10) UNSIGNED NOT NULL AFTER `uid`;");
goto b416D;
XsSI3:
if ($QUco1) {
    goto pOqDb;
}
goto t1Aol;
WpnmE:
if ($SEoXL) {
    goto JYtSa;
}
goto ds9hP;
Eb6NK:
NMhcN:
goto KFA7_;
ywiM1:
pdo_query("ALTER TABLE " . tablename("mii_ang_ucard") . " ADD COLUMN `code` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '信息码' AFTER `card_id`;");
goto uRUks;
ACYIv:
pdo_query("ALTER TABLE " . tablename("mii_ang_mcard") . " ADD COLUMN `actime` int(10) UNSIGNED NOT NULL COMMENT '激活时间' AFTER `activation`;");
goto KNRbc;
g95Ov:
$O6EKP = pdo_tableexists("mii_ang_menu");
goto feX6n;
gTNJQ:
pdo_run($sql);
goto qWB01;
U8c97:
Zr3hO:
goto VNFzV;
Vlafg:
pdo_query("ALTER TABLE " . tablename("mii_ang_order") . " ADD COLUMN `ok_time` int(10) UNSIGNED NOT NULL COMMENT '完成时间' AFTER `order_type`;");
goto qVARU;
KRaV9:
$sYvhb = pdo_fieldexists("mii_ang_siteinfo", "bottommenu");
goto vfSls;
rhc3r:
pdo_query("ALTER TABLE " . tablename("mii_ang_ucard") . " ADD COLUMN `addtime` int(10) UNSIGNED NOT NULL AFTER `use`;");
goto xskXw;
WI8n1:
SnJZ7:
goto kgOoi;
xlJf1:
$sql = "CREATE TABLE `ims_mii_ang_paylog` (  `oid` int(10) unsigned NOT NULL AUTO_INCREMENT,  `uniacid` int(10) unsigned NOT NULL,  `type` varchar(20) NOT NULL,  `pay_type` varchar(10) NOT NULL,  `openid` varchar(40) NOT NULL,  `uniontid` varchar(64) NOT NULL,  `fee` decimal(10,2) NOT NULL,  `mcard_on` varchar(20) NOT NULL COMMENT '会员卡',  `mcard_fee` decimal(10,2) NOT NULL,  `card_on` varchar(20) NOT NULL COMMENT '优惠券',  `card_fee` decimal(10,2) NOT NULL,  `status` tinyint(1) unsigned NOT NULL,  `note` varchar(2000) NOT NULL,  PRIMARY KEY (`oid`),  KEY `idx_card_on` (`mcard_on`) USING BTREE,  KEY `idx_openid` (`openid`) USING BTREE,  KEY `idx_uniacid` (`uniacid`) USING BTREE,  KEY `uniontion` (`uniontid`) USING BTREE,  KEY `idx_mcard_on` (`mcard_on`) USING BTREE) ENGINE=MyISAM DEFAULT CHARSET=utf8";
goto PWs_b;
Jkklm:
if ($jCHaq) {
    goto yqG0P;
}
goto dtMFB;
xGbZD:
$PfAY7 = pdo_fieldexists("mii_ang_info", "is_pay");
goto qXvBB;
i7Zyc:
pdo_query("ALTER TABLE " . tablename("mii_ang_paylog") . " ADD COLUMN `addtime` int(10) UNSIGNED NOT NULL AFTER `note`;");
goto jsZvc;
Z_5lF:
$SEoXL = pdo_fieldexists("mii_ang_setting", "sms_config");
goto zFBff;
KXjNs:
$avhrX = pdo_fieldexists("mii_ang_order", "card_id");
goto EhUEO;
yDChd:
pdo_query("ALTER TABLE " . tablename("mii_ang_order") . " MODIFY COLUMN `orderid` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '订单编号' AFTER `uniacid`;");
goto hZeq1;
Boug2:
$x0Ijg = pdo_fieldexists("mii_ang_ucard", "addtime");
goto qzSdV;
ZvoUr:
yqG0P:
goto eHK4N;
d7zOo:
$PVEE0 = pdo_fieldexists("mii_ang_ucard", "cid");
goto EUjtk;
b_cL7:
YotTe:
goto DAjWt;
R76wK:
x18iC:
goto LwcW2;
b_fiV:
IEkwL:
goto PM_b2;
dQ_FB:
if ($AMF9V) {
    goto ADARy;
}
goto yDChd;
WfzDP:
$OCr6k = pdo_tableexists("mii_ang_setting");
goto IfMA1;
HMr5t:
if ($LQIxH) {
    goto m3T2C;
}
goto TiMTh;
R_yR9:
upfunc();
goto e1A5i;
eMPLK:
$xXdug = pdo_fieldexists("mii_ang_mcard", "mcard_discount");
goto Toe4m;
U6V0l:
dxhbH:
goto r6o69;
mhTbt:
$i4y61 = pdo_fieldexists("mii_ang_ucard", "card_id");
goto mBUCy;
CpZK3:
pdo_query("ALTER TABLE " . tablename("mii_ang_ucard") . " ADD COLUMN `code` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '信息码' AFTER `card_id`;");
goto HWugx;
MrX2f:
$plQAX = pdo_fieldexists("mii_ang_info", "msg_roof");
goto u52bT;
t0pK8:
if ($xv3V5) {
    goto eBbMT;
}
goto ACYIv;
nCjq8:
$qliiU = pdo_fieldexists("mii_ang_info", "admin_phone");
goto G0APe;
sGwrU:
MZJ3W:
goto nCjq8;
zGuXU:
if ($PVEE0) {
    goto inKRy;
}
goto mHZsf;
R_6d7:
aVF_2:
goto ZxLR2;
VyG9K:
$oUkgY = pdo_fieldexists("mii_ang_order", "card_price");
goto bDiTN;
bs6pU:
NCfVG:
goto uNji1;
P5nsv:
pdo_query("ALTER TABLE " . tablename("mii_ang_ucard") . " ADD COLUMN `card_on` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '卡券编号' AFTER `code`;");
goto YqYWo;
w_0F1:
$iJXQm = pdo_tableexists("mii_ang_mcard");
goto hPJ42;
eykX9:
$SEoXL = pdo_fieldexists("mii_ang_setting", "sms_config");
goto WpnmE;
MWuJb:
pdo_query("ALTER TABLE " . tablename("mii_ang_order") . " ADD COLUMN `card_price` decimal(10,2)  NOT NULL COMMENT '卡券抵消' AFTER `card_on`;");
goto W_ZqM;
qk1t4:
$KVkS5 = pdo_fieldexists("mii_ang_ucard", "roof");
goto xXi7R;
DeTFa:
pdo_query("ALTER TABLE " . tablename("mii_ang_order") . " MODIFY COLUMN `orderid` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '订单编号' AFTER `uniacid`;");
goto JYhyF;
ikW2T:
pdo_query("ALTER TABLE " . tablename("mii_ang_paylog") . " ADD COLUMN `give` decimal(10,2)  NOT NULL COMMENT '赠送' AFTER `card_fee`;");
goto x6NQP;
XEDD3:
if ($AMF9V) {
    goto HiaX8;
}
goto BGv4D;
feX6n:
if ($O6EKP) {
    goto QzWKI;
}
goto sZcbd;
u52bT:
if ($plQAX) {
    goto VqIFA;
}
goto fS4oX;
mbMaW:
mwSyF:
goto jAkGt;
zYopp:
PLu1H:
goto VAvTS;
nnR25:
if ($plQAX) {
    goto S872z;
}
goto tjSpR;
A49Ly:
GKYse:
goto CUooo;
K3HSb:
$sql = "CREATE TABLE `ims_mii_ang_setting` (  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  `uniacid` int(10) unsigned NOT NULL,  `tenkey` varchar(100) NOT NULL,  `appid` varchar(100) DEFAULT NULL,  `appsecret` varchar(100) DEFAULT NULL,  PRIMARY KEY (`id`)) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='设置'";
goto CJGJo;
CJGJo:
pdo_run($sql);
goto BMiBP;
sZcbd:
$sql = "CREATE TABLE `ims_mii_ang_menu` (  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  `uniacid` int(10) unsigned NOT NULL,  `orderid` int(10) unsigned NOT NULL,  `menutype` varchar(32) NOT NULL,  `name` varchar(32) NOT NULL,  `font_color` varchar(32) NOT NULL,  `selectfont_color` varchar(32) NOT NULL,  `url` varchar(100) NOT NULL,  `imageurl` varchar(256) NOT NULL,  `selectimageurl` varchar(256) NOT NULL,  PRIMARY KEY (`id`)) ENGINE=MyISAM DEFAULT CHARSET=utf8";
goto KPhjJ;
phHZd:
VRjxQ:
goto WfzDP;
p0CyW:
pdo_query("ALTER TABLE " . tablename("mii_ang_class") . " ADD COLUMN `bg_color` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL AFTER `ishide`;");
goto gUKHn;
uNji1:
$sYvhb = pdo_fieldexists("mii_ang_siteinfo", "bottommenu");
goto FuCQE;
FuCQE:
if ($sYvhb) {
    goto z90zr;
}
goto GLDVm;
s9pAr:
$fb0bD = pdo_fieldexists("mii_ang_order", "ok_time");
goto Tu3yM;
HUcmP:
$C8l9D = pdo_tableexists("mii_ang_book");
goto A7FE4;
D779P:
$rebnx = pdo_fieldexists("mii_ang_book", "techid");
goto xrrOV;
exCQe:
$jYMLH = pdo_fieldexists("mii_ang_ucard", "code");
goto Sznd3;
hsg1m:
$Z5g7J = pdo_fieldexists("mii_ang_info", "pics");
goto Reb1z;
KY0JA:
if ($Z5g7J) {
    goto SnJZ7;
}
goto OyEAg;
VAvTS:
$BtNuT = pdo_fieldexists("mii_ang_book", "address");
goto ac7np;
KPhjJ:
pdo_run($sql);
goto n6GCt;
wWc67:
$fb0bD = pdo_fieldexists("mii_ang_order", "ok_time");
goto qIELG;
hkyYI:
if ($fE9iv) {
    goto Gauu4;
}
goto xlJf1;
EhUEO:
if ($avhrX) {
    goto Ne9Jo;
}
goto Ewi3z;
ac7np:
if ($BtNuT) {
    goto wM5Wu;
}
goto eHG8a;
qIELG:
if ($fb0bD) {
    goto btPXr;
}
goto uUhbL;
S6j0e:
pdo_query("ALTER TABLE " . tablename("mii_ang_mcard") . " ADD COLUMN `mcard_discount` decimal(3,2)  NOT NULL COMMENT '会员折扣' AFTER `mcard_name`;");
goto vxvnC;
TXny2:
if ($II8KN) {
    goto HqEWN;
}
goto m4r0G;
AVadp:
Gauu4:
goto ZCw36;
WVm0q:
CPz30:
goto d7zOo;
U2jle:
$cBsBr = pdo_fieldexists("mii_ang_ucard", "card_on");
goto vbf0o;
zeg2P:
if ($Yd9Aa) {
    goto kWVbB;
}
goto wLj_E;
C3lqO:
$sql = "CREATE TABLE `ims_mii_ang_info` (  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  `uniacid` int(10) unsigned NOT NULL,  `logo` varchar(100) NOT NULL,  `companyname` varchar(32) NOT NULL,  `starthours` varchar(16) NOT NULL,  `endhours` varchar(16) NOT NULL,  `phone` varchar(32) NOT NULL,  `videourl` varchar(256) NOT NULL,  `copyright` varchar(60) NOT NULL,  `address` varchar(32) NOT NULL,  `lat` decimal(10,7) NOT NULL,  `lng` decimal(10,7) NOT NULL,  `Blat` decimal(10,7) NOT NULL,  `Blng` decimal(10,7) NOT NULL,  `adinfo` text NOT NULL,  `msg_templateid` varchar(64) NOT NULL,  `openid` varchar(256) NOT NULL,  PRIMARY KEY (`id`)) ENGINE=MyISAM DEFAULT CHARSET=utf8";
goto OvZhI;
E22NR:
$fE9iv = pdo_tableexists("mii_ang_paylog");
goto hkyYI;
RrR_z:
FhKP8:
goto oZQxl;
RhpLP:
al7Jp:
goto NTvOI;
WzwYp:
pdo_query("ALTER TABLE " . tablename("mii_ang_mcard") . " ADD COLUMN `level` int(10) UNSIGNED NOT NULL COMMENT '会员等级' AFTER `uid`;");
goto W0SlT;
KPm60:
$II8KN = pdo_tableexists("mii_ang_ucard");
goto TXny2;
TeSp9:
pdo_run($sql);
goto ylbfU;
jamLN:
FtjWD:
goto exCQe;
jlEvE:
bXh7N:
goto etBsR;
Xpgxs:
pdo_query("ALTER TABLE " . tablename("mii_ang_ucard") . " ADD COLUMN `use` tinyint(1) NOT NULL DEFAULT -1 AFTER `card_info`;");
goto tRXIX;
SDx_j:
pdo_query("ALTER TABLE " . tablename("mii_ang_ucard") . " ADD COLUMN `roof` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '平台类型' AFTER `use`;");
goto cDCxo;
ylbfU:
G7iiV:
goto w_0F1;
jAkGt:
$jCHaq = pdo_fieldexists("mii_ang_order", "tmoney");
goto Jkklm;
CJZsG:
pdo_query("ALTER TABLE " . tablename("mii_ang_order") . " ADD COLUMN `card_on` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '卡券编号' AFTER `card_id`");
goto AvH97;
VNFzV:
$DKC1z = pdo_fieldexists("mii_ang_book", "techname");
goto T1gEl;
d9OB7:
if ($XquJx) {
    goto Oskfr;
}
goto hUr4V;
CZv3X:
kWVbB:
goto FQDWF;
jXxc9:
$AMF9V = !(pdo_fieldmatch("mii_ang_order", "orderid", "varchar") == -1);
goto dQ_FB;
BMiBP:
qYwSB:
goto o9l4v;
hZeq1:
ADARy:
goto Ljqgo;
T1gEl:
if ($DKC1z) {
    goto KnfRg;
}
goto t9NXL;
JSP92:
JYtSa:
goto yFCe9;
r6o69:
$ThJmI = pdo_tableexists("mii_ang_card");
goto rjrOA;
ZxLR2:
$QUco1 = pdo_fieldexists("mii_ang_siteinfo", "indexmenu");
goto XsSI3;
JhWbx:
pdo_run($sql);
goto X2V_1;
R63al:
$LQIxH = pdo_fieldexists("mii_ang_ucard", "uniacid");
goto lcRZN;
kv_Ae:
pdo_run($sql);
goto zYopp;
wQ_ec:
$TSXXt = pdo_tableexists("mii_ang_tech");
goto tK_X2;
b0K86:
$XquJx = pdo_tableexists("mii_ang_user");
goto d9OB7;
YAtUw:
$sql = "CREATE TABLE `ims_mii_ang_ad` (  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  `uniacid` int(10) unsigned NOT NULL,  `title` varchar(255) NOT NULL,  `imgurl` varchar(255) NOT NULL,  `ishide` tinyint(1) unsigned NOT NULL DEFAULT '1',  `orderid` int(10) unsigned NOT NULL,  `link` varchar(255) NOT NULL,  `term` int(11) unsigned NOT NULL,  `addtime` int(11) unsigned NOT NULL,  `linkgoodsid` int(10) unsigned NOT NULL,  PRIMARY KEY (`id`)) ENGINE=MyISAM  DEFAULT CHARSET=utf8 ";
goto gxVcq;
tRXIX:
OVtm4:
goto Boug2;
atvmQ:
$Yd9Aa = pdo_fieldexists("mii_ang_ucard", "card_type");
goto uSUDv;
EUjtk:
if ($PVEE0) {
    goto vopeq;
}
goto kL4Fe;
uP_wj:
if ($p3luE) {
    goto B0HO0;
}
goto WzwYp;
cEtKz:
$rebnx = pdo_fieldexists("mii_ang_book", "techid");
goto IR52z;
XEWtO:
pdo_run($sql);
goto Q5MJN;
k92LS:
HiaX8:
goto D7c1K;
qXvBB:
if ($PfAY7) {
    goto GKYse;
}
goto OdjNL;
lZLo3:
eXu7I:
goto R63al;
Fvfz1:
if ($avhrX) {
    goto T63Ku;
}
goto mQIcR;
NOyu9:
pdo_query("ALTER TABLE " . tablename("mii_ang_ucard") . " ADD COLUMN `uid` int(10) UNSIGNED NOT NULL AFTER `uniacid`;");
goto WVm0q;
V7zo6:
v4s2p:
goto KPm60;
b2uib:
pdo_run($sql);
goto rF79t;
Ecw0s:
pdo_query("ALTER TABLE " . tablename("mii_ang_setting") . " ADD COLUMN `sms_note` tinyint(1) UNSIGNED NOT NULL AFTER `appsecret`;");
goto GOsEq;
e1A5i:
$BtNuT = pdo_fieldexists("mii_ang_book", "address");
goto b4VAK;
rBKBt:
pdo_query("ALTER TABLE `ims_mii_ang_order` ADD COLUMN `tmoney` decimal(10,2)  NOT NULL COMMENT '商品真实金额' AFTER `goods_money`;");
goto R_6d7;
T4Ptf:
S872z:
goto Dcjh4;
W_ZqM:
MA2GU:
goto v87KS;
ohNSl:
DtfBx:
goto MrX2f;
Ljqgo:
$FH8Rr = pdo_fieldmatch("mii_ang_order", "orderid", "varchar");
goto BA9lb;
xXi7R:
if ($KVkS5) {
    goto x18iC;
}
goto bdLgD;
OTTqj:
pdo_run($sql);
goto GTIX5;
EZPXs:
if ($yDLY1) {
    goto CwsyL;
}
goto DnER7;
EEe71:
$R0GN1 = pdo_fieldexists("mii_ang_order", "order_type");
goto QJ2jn;
FhszJ:
pdo_query("ALTER TABLE " . tablename("mii_ang_paylog") . " ADD COLUMN `pay_time` int(10) UNSIGNED NOT NULL AFTER `addtime`;");
goto VBlFI;
PWs_b:
pdo_run($sql);
goto AVadp;
Tu3yM:
if ($fb0bD) {
    goto lDUg9;
}
goto Vlafg;
Igg_E:
if ($R0GN1) {
    goto jDoR8;
}
goto wtj4U;
uSUDv:
if ($Yd9Aa) {
    goto IEkwL;
}
goto PTgIU;
HWugx:
qdlZd:
goto U2jle;
uc2Py:
pOqDb:
goto KRaV9;
UVGN9:
pdo_run($sql);
goto X5zv2;
Uxej3:
wM5Wu:
goto cEtKz;
OyEAg:
pdo_query("ALTER TABLE " . tablename("mii_ang_info") . " ADD COLUMN `pics` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL AFTER `videourl`;");
goto WI8n1;
t1Aol:
pdo_query("ALTER TABLE " . tablename("mii_ang_siteinfo") . " ADD COLUMN `indexmenu` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL AFTER `siteinfo`;");
goto uc2Py;
Aqo1y:
if ($roPZR) {
    goto v4s2p;
}
goto EiH4m;
m0sAe:
pdo_run($sql);
goto pgTQM;
uct2K:
pdo_query("ALTER TABLE " . tablename("mii_ang_setting") . " ADD COLUMN `sms_config` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL AFTER `sms_note`;");
goto nZjYK;
KRTFA:
$qjgPS = pdo_tableexists("mii_ang_mcard_info");
goto Ea1na;
BMy4F:
if ($cBsBr) {
    goto CYyk1;
}
goto P5nsv;
lga2s:
$DKC1z = pdo_fieldexists("mii_ang_book", "techname");
goto jfVPX;
UFFQ7:
BxRgo:
goto pNyEf;
N2BAv:
pdo_run($sql);
goto U6V0l;
tpq6e:
include $this->template("web/mii");
goto r9j1Z;
UHikA:
$qliiU = pdo_fieldexists("mii_ang_info", "admin_phone");
goto WNllx;
Toe4m:
if ($xXdug) {
    goto sVXGb;
}
goto S6j0e;
WQxaA:
zX9rt:
goto E1HOf;
y2rd_:
KnfRg:
goto cWrsA;
wLj_E:
pdo_query("ALTER TABLE " . tablename("mii_ang_ucard") . " ADD COLUMN `card_type` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '卡券类型' AFTER `card_on`;");
goto CZv3X;
UaoAB:
if ($nPhux) {
    goto mXXB2;
}
goto sEDmw;
t9NXL:
pdo_query("ALTER TABLE " . tablename("mii_ang_book") . "ADD COLUMN `techname` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL AFTER `techid`;");
goto y2rd_;
PTgIU:
pdo_query("ALTER TABLE " . tablename("mii_ang_ucard") . " ADD COLUMN `card_type` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '卡券类型' AFTER `card_on`;");
goto b_fiV;
goVRZ:
$dj8ZJ = pdo_fieldexists("mii_ang_order", "card_on");
goto tjAsL;
ky9FI:
$sql = "CREATE TABLE `ims_mii_ang_class` (  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  `uniacid` int(10) NOT NULL,  `pid` int(10) unsigned NOT NULL DEFAULT '0',  `categoryname` varchar(30) NOT NULL,  `category_order` smallint(5) unsigned NOT NULL DEFAULT '0',  `ishide` tinyint(1) unsigned NOT NULL DEFAULT '1',  PRIMARY KEY (`id`)) ENGINE=MyISAM DEFAULT CHARSET=utf8 ";
goto OTTqj;
y3ZsO:
$p3luE = pdo_fieldexists("mii_ang_mcard", "level");
goto uP_wj;
n1ZO1:
if ($dFZMP) {
    goto IRJg3;
}
goto ikW2T;
W0SlT:
B0HO0:
goto rzcE6;
G0APe:
if ($qliiU) {
    goto xIxId;
}
goto madWa;
gwv0k:
$sql = "CREATE TABLE `ims_mii_ang_book` (  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  `uniacid` int(10) unsigned NOT NULL,  `uid` int(10) unsigned NOT NULL,  `goodsid` int(10) unsigned NOT NULL,  `booktime` int(11) unsigned NOT NULL,  `addtime` int(11) unsigned NOT NULL,  `uname` varchar(32) NOT NULL,  `phone` varchar(32) NOT NULL,  `goodsname` varchar(32) DEFAULT NULL,  `price` decimal(10,2) unsigned NOT NULL,  PRIMARY KEY (`id`)) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COMMENT='预订'";
goto FFYoz;
rzcE6:
$w1kxy = pdo_fieldexists("mii_ang_mcard", "mcard_name");
goto OU7jB;
PM_b2:
$J1w3i = pdo_fieldexists("mii_ang_ucard", "card_info");
goto kpJ_m;
rmr9Y:
$PQENz = pdo_fieldexists("mii_ang_setting", "sms_note");
goto m8LeP;
rxZlq:
pdo_query("ALTER TABLE " . tablename("mii_ang_order") . " ADD COLUMN `card_price` decimal(10,2)  NOT NULL COMMENT '卡券抵消' AFTER `card_on`;");
goto mbMaW;
us5S2:
pdo_query("ALTER TABLE " . tablename("mii_ang_class") . " ADD COLUMN `bg_color` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL AFTER `ishide`;");
goto sGwrU;
uRUks:
GRJZq:
goto fpmrJ;
WNllx:
if ($qliiU) {
    goto YotTe;
}
goto YouXI;
eHG8a:
pdo_query("ALTER TABLE " . tablename("mii_ang_book") . " ADD COLUMN `address` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL AFTER `price`;");
goto Uxej3;
VHcKZ:
$R6kar = pdo_tableexists("mii_ang_ad");
goto XutpC;
dgEac:
$vRYI6 = pdo_fieldexists("mii_ang_paylog", "pay_time");
goto kN4s8;
rp8J7:
pdo_query("ALTER TABLE " . tablename("mii_ang_ucard") . " ADD COLUMN `card_id` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '卡券id' AFTER `cid`;");
goto jamLN;
oZQxl:
$Z5g7J = pdo_fieldexists("mii_ang_info", "pics");
goto KY0JA;
IfMA1:
if ($OCr6k) {
    goto qYwSB;
}
goto K3HSb;
C2LBW:
$sql = "CREATE TABLE `ims_mii_ang_order` (  `oid` int(10) unsigned NOT NULL AUTO_INCREMENT,  `uniacid` int(10) unsigned NOT NULL,  `orderid` int(20) unsigned NOT NULL COMMENT '订单编号',  `uid` int(10) NOT NULL COMMENT '用户ID',  `book_id` int(10) NOT NULL COMMENT '预订ID',  `is_pay` tinyint(1) NOT NULL COMMENT '是否支付',  `is_ok` tinyint(1) unsigned NOT NULL COMMENT '是否完结',  `goods_id` int(10) unsigned NOT NULL COMMENT '商品ID',  `tech_id` int(10) unsigned NOT NULL COMMENT '服务员ID',  `pay_money` decimal(10,2) NOT NULL COMMENT '支付金额',  `goods_money` decimal(10,2) NOT NULL COMMENT '商品金额',  `title` varchar(32) NOT NULL COMMENT '订单标题',  `details` varchar(1000) NOT NULL COMMENT '订单详情',  `addtime` int(10) unsigned NOT NULL COMMENT '创建时间',  `pay_time` int(10) unsigned NOT NULL COMMENT '支付时间',  PRIMARY KEY (`oid`)) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='订单'";
goto N2BAv;
fpmrJ:
$cBsBr = pdo_fieldexists("mii_ang_ucard", "card_on");
goto BMy4F;
eHK4N:
$QUco1 = pdo_fieldexists("mii_ang_siteinfo", "indexmenu");
goto sk9OM;
LwcW2:
$iBmRc = pdo_fieldexists("mii_ang_class", "bg_color");
goto jsZwO;
hUr4V:
$sql = "CREATE TABLE `ims_mii_ang_user` (  `uid` int(10) unsigned NOT NULL AUTO_INCREMENT,  `uniacid` int(10) unsigned NOT NULL,  `lv` int(10) unsigned NOT NULL,  `uPassword` varchar(32) NOT NULL,  `uPhone` varchar(32) NOT NULL,  `uName` varchar(32) NOT NULL,  `nickname` varchar(32) NOT NULL,  `openid` varchar(60) NOT NULL,  PRIMARY KEY (`uid`)) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='会员'";
goto m0sAe;
n6GCt:
QzWKI:
goto cNsD3;
jbhh4:
if ($a4Rup) {
    goto DJMER;
}
goto i7Zyc;
OvZhI:
pdo_run($sql);
goto phHZd;
xskXw:
UcAW3:
goto O7ysP;
WS0NV:
Ne9Jo:
goto Smc7c;
bdLgD:
pdo_query("ALTER TABLE " . tablename("mii_ang_ucard") . " ADD COLUMN `roof` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '平台类型' AFTER `use`;");
goto R76wK;
cvfI9:
pdo_query("ALTER TABLE " . tablename("mii_ang_ucard") . " ADD COLUMN `addtime` int(10) UNSIGNED NOT NULL AFTER `use`;");
goto Fc9rl;
m4r0G:
$sql = "CREATE TABLE `ims_mii_ang_ucard` (  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  `uniacid` int(10) unsigned NOT NULL,  `uid` int(10) unsigned NOT NULL,  `card_id` varchar(60) NOT NULL,  PRIMARY KEY (`id`)) ENGINE=MyISAM DEFAULT CHARSET=utf8";
goto iaKiY;
FQDWF:
$J1w3i = pdo_fieldexists("mii_ang_ucard", "card_info");
goto SnyFw;
qY2I1:
fGf9q:
goto VHcKZ;
mBUCy:
if ($i4y61) {
    goto zX9rt;
}
goto zBC5M;
jfVPX:
if ($DKC1z) {
    goto DtfBx;
}
goto m3qf1;
D7c1K:
$FH8Rr = pdo_fieldmatch("mii_ang_order", "orderid", "varchar");
goto wfWCN;
GLDVm:
pdo_query("ALTER TABLE " . tablename("mii_ang_siteinfo") . " ADD COLUMN `bottommenu` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL AFTER `indexmenu`;");
goto uT9eo;
E1HOf:
$jYMLH = pdo_fieldexists("mii_ang_ucard", "code");
goto hI7tr;
z8if8:
$i4y61 = pdo_fieldexists("mii_ang_ucard", "card_id");
goto HinjJ;
QJ2jn:
if ($R0GN1) {
    goto yM1xT;
}
goto OYyiI;
YqYWo:
CYyk1:
goto atvmQ;
JYhyF:
wqs2q:
goto tH1mB;
ds9hP:
pdo_query("ALTER TABLE " . tablename("mii_ang_setting") . " ADD COLUMN `sms_config` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL AFTER `sms_note`;");
goto JSP92;
c4MfG:
$AMF9V = !(pdo_fieldmatch("mii_ang_order", "orderid", "varchar") == -1);
goto XEDD3;
lcRZN:
if ($LQIxH) {
    goto BxRgo;
}
goto U1Bwy;
y0Q60:
if ($KVkS5) {
    goto RtgY8;
}
goto SDx_j;
zW3gB:
pdo_query("ALTER TABLE " . tablename("mii_ang_siteinfo") . " ADD COLUMN `indexmenu` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL AFTER `siteinfo`;");
goto bs6pU;
PXVZ1:
$oUkgY = pdo_fieldexists("mii_ang_order", "card_price");
goto iBaga;
pNyEf:
$Yvv8B = pdo_fieldexists("mii_ang_ucard", "uid");
goto yZ3Du;
faJV1:
$x0Ijg = pdo_fieldexists("mii_ang_ucard", "addtime");
goto qnjoT;
hI7tr:
if ($jYMLH) {
    goto qdlZd;
}
goto CpZK3;
kzBq_:
CwsyL:
goto OQP4C;
GOsEq:
L5Bpv:
goto Z_5lF;
FxyRx:
Uc6KE:
goto EEe71;
jsZvc:
DJMER:
goto dgEac;
D5ABt:
$dFZMP = pdo_fieldexists("mii_ang_paylog", "give");
goto n1ZO1;
Fc9rl:
F27Ez:
goto qk1t4;
ertak:
m3T2C:
goto AynrW;
L1Q5L:
$sql = "CREATE TABLE `ims_mii_ang_timeslot` (  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  `uniacid` int(10) unsigned NOT NULL,  `sid` int(10) unsigned NOT NULL,  `tid` int(10) unsigned NOT NULL,  `oid` int(10) unsigned NOT NULL,  `gid` int(10) unsigned NOT NULL,  `start` int(10) unsigned NOT NULL,  `end` int(10) unsigned NOT NULL,  `status` tinyint(1) NOT NULL COMMENT '-1 未确定\n1 确定',  PRIMARY KEY (`id`),  KEY `idx_uniacid` (`uniacid`) USING BTREE,  KEY `idx_tid` (`tid`) USING BTREE,  KEY `idx_gid` (`gid`) USING BTREE,  KEY `idx_sid` (`sid`) USING BTREE,  KEY `idx_oid` (`oid`)) ENGINE=MyISAM DEFAULT CHARSET=utf8";
goto XEWtO;
vxvnC:
sVXGb:
goto F1490;
F1490:
$xv3V5 = pdo_fieldexists("mii_ang_mcard", "actime");
goto t0pK8;
OQP4C:
$dvUxx = pdo_tableexists("mii_ang_order");
goto jrVPn;
kN4s8:
if ($vRYI6) {
    goto QxBa1;
}
goto FhszJ;
Ewi3z:
pdo_query("ALTER TABLE " . tablename("mii_ang_order") . " ADD COLUMN `card_id` int(10) UNSIGNED NOT NULL COMMENT '卡券ID' AFTER `order_type`;");
goto WS0NV;
uoz86:
if ($FffW6) {
    goto VRjxQ;
}
goto C3lqO;
M0L4Y:
pdo_query("ALTER TABLE " . tablename("mii_ang_info") . " ADD COLUMN `pics` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL AFTER `videourl`;");
goto qY2I1;
AvH97:
JBcCh:
goto PXVZ1;
bDiTN:
if ($oUkgY) {
    goto mwSyF;
}
goto rxZlq;
XutpC:
if ($R6kar) {
    goto IYukU;
}
goto YAtUw;
zBC5M:
pdo_query("ALTER TABLE " . tablename("mii_ang_ucard") . " ADD COLUMN `card_id` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '卡券id' AFTER `cid`;");
goto WQxaA;
Gz_mH:
T63Ku:
goto goVRZ;
BGv4D:
pdo_query("ALTER TABLE " . tablename("mii_ang_order") . " MODIFY COLUMN `orderid` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '订单编号' AFTER `uniacid`;");
goto k92LS;
o9l4v:
$roPZR = pdo_tableexists("mii_ang_siteinfo");
goto Aqo1y;
uT9eo:
z90zr:
goto hsg1m;
cNsD3:
$LUopq = pdo_tableexists("mii_ang_pageinfo");
goto Cb47Y;
iN9f0:
tag();
goto R_yR9;
r5xlu:
$TdWFt = pdo_tableexists("mii_ang_goods");
goto zdA5H;
bLv8S:
pdo_query("ALTER TABLE " . tablename("mii_ang_book") . " ADD COLUMN `address` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL AFTER `price`;");
goto c_lGI;
BP0Fy:
$yDLY1 = pdo_fieldexists("mii_ang_tech", "timetemplate_id");
goto EZPXs;
Ok2wn:
$sql = "CREATE TABLE `ims_mii_ang_goods` (  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  `uniacid` int(10) unsigned NOT NULL,  `tid` int(10) unsigned NOT NULL COMMENT '分类id',  `ishot` tinyint(1) unsigned NOT NULL,  `orderid` int(10) unsigned NOT NULL,  `addtime` int(11) unsigned NOT NULL,  `goodsname` varchar(50) NOT NULL,  `titlepic` varchar(100) NOT NULL COMMENT '产品略缩图',  `price` decimal(10,2) unsigned NOT NULL,  `summary` varchar(100) NOT NULL,  `details` text COMMENT '详情',  `grounding` tinyint(1) unsigned NOT NULL COMMENT '是否上架',  `pics` varchar(1000) DEFAULT NULL COMMENT '产品图集',  PRIMARY KEY (`id`)) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='商品表'";
goto gTNJQ;
XpHIu:
pdo_query("ALTER TABLE " . tablename("mii_ang_info") . " ADD COLUMN `is_pay` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 AFTER `msg_roof`;");
goto FxyRx;
FFYoz:
pdo_run($sql);
goto waeh0;
cPOSk:
D9uNq:
goto g95Ov;
X5zv2:
HixBm:
goto E22NR;
fLv19:
X6N0e:
goto eykX9;
MYgg9:
$sql = "CREATE TABLE `ims_mii_ang_tech` (  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  `uniacid` int(10) unsigned NOT NULL,  `tname` varchar(16) NOT NULL,  `classid` varchar(64) NOT NULL,  `avatar` varchar(100) NOT NULL,  `leve` varchar(16) NOT NULL,  `leve_color` varchar(16) NOT NULL,  `skill` varchar(60) NOT NULL,  `message` varchar(256) NOT NULL,  `onlinestart` varchar(16) NOT NULL,  `onlineend` varchar(16) NOT NULL,  `opus` text NOT NULL,  `status` tinyint(1) unsigned NOT NULL,  `orderid` int(10) unsigned NOT NULL,  `fabulous` int(10) unsigned NOT NULL,  `praise` decimal(5,2) unsigned NOT NULL DEFAULT '100.00',  `addtime` int(10) unsigned NOT NULL,  PRIMARY KEY (`id`)) ENGINE=MyISAM DEFAULT CHARSET=utf8";
goto b2uib;
Cnxs_:
pdo_query("ALTER TABLE " . tablename("mii_ang_book") . " ADD COLUMN `techid` int(10) UNSIGNED NOT NULL AFTER `address`;");
goto Vdk6Z;
qWB01:
NXeN6:
goto cDn1g;
Cb47Y:
if ($LUopq) {
    goto G7iiV;
}
goto BXMNY;
qVARU:
lDUg9:
goto c4MfG;
hGzKm:
if ($iBmRc) {
    goto MZJ3W;
}
goto us5S2;
L03fX:
mXXB2:
goto faJV1;
x6NQP:
IRJg3:
goto tpq6e;
J6tx_:
vopeq:
goto mhTbt;
hoLtH:
IYukU:
goto HUcmP;
v87KS:
$jCHaq = pdo_fieldexists("mii_ang_order", "tmoney");
goto pSHsq;
ITiz0:
$nPhux = pdo_fieldexists("mii_ang_ucard", "use");
goto UaoAB;
waeh0:
i0fwe:
goto hLkaw;
dtMFB:
pdo_query("ALTER TABLE " . tablename("mii_ang_order") . " ADD COLUMN `tmoney` decimal(10,2)  NOT NULL COMMENT '商品真实金额' AFTER `goods_money`;");
goto ZvoUr;
k0FOg:
if ($dj8ZJ) {
    goto Q43Un;
}
goto BHZTl;
NTvOI:
$Yd9Aa = pdo_fieldexists("mii_ang_ucard", "card_type");
goto zeg2P;
FY0cM:
$sql = "CREATE TABLE `ims_mii_ang_card` (  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  `uniacid` int(10) unsigned NOT NULL,  `roof` varchar(32) NOT NULL COMMENT 'wechat||mii',  `card_type` varchar(32) NOT NULL COMMENT '卡券类型',  `card_id` varchar(32) NOT NULL COMMENT '卡券ID',  `logo_url` varchar(256) NOT NULL COMMENT 'logo_url',  `bg_color` varchar(32) NOT NULL COMMENT '背景颜色',  `title` varchar(32) NOT NULL COMMENT '标题',  `addtime` int(10) unsigned NOT NULL COMMENT '创建时间',  `starttime` int(10) unsigned NOT NULL COMMENT '有限起始时间',  `endtime` int(10) unsigned NOT NULL COMMENT '结束时间',  `notice` varchar(64) NOT NULL COMMENT '备注',  `description` varchar(64) NOT NULL COMMENT '描述',  `code` varchar(256) NOT NULL,  `status` tinyint(1) unsigned NOT NULL COMMENT '上架下架',  `get_limit` int(10) unsigned NOT NULL COMMENT '每人限取多少张',  `date_info` varchar(100) NOT NULL,  `time_type` varchar(32) NOT NULL COMMENT '时间类型',  `quantity` int(10) unsigned NOT NULL COMMENT '库存现有量',  `total_quantity` int(10) unsigned NOT NULL COMMENT '总库存',  `orderid` int(10) unsigned NOT NULL COMMENT '排序',  `condition` decimal(10,2) NOT NULL COMMENT '条件',  `minus` decimal(10,2) NOT NULL COMMENT '立减',  `discount` decimal(10,2) NOT NULL COMMENT '折扣',  PRIMARY KEY (`id`)) ENGINE=MyISAM DEFAULT CHARSET=utf8";
goto PfEoS;
GTIX5:
OhBB4:
goto r5xlu;
pgTQM:
Oskfr:
goto wQ_ec;
SVC0B:
pdo_query("ALTER TABLE " . tablename("mii_ang_ucard") . " ADD COLUMN `card_on` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '卡券编号' AFTER `code`;");
goto RhpLP;
Q5MJN:
T0Z3G:
goto y3ZsO;
gxVcq:
pdo_run($sql);
goto hoLtH;
AZX4q:
$iBmRc = pdo_fieldexists("mii_ang_class", "bg_color");
goto hGzKm;
SnyFw:
if ($J1w3i) {
    goto DW7ey;
}
goto YZRpr;
GRqaO:
pdo_query("ALTER TABLE " . tablename("mii_ang_siteinfo") . " ADD COLUMN `bottommenu` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL AFTER `indexmenu`;");
goto RrR_z;
tH1mB:
$LQIxH = pdo_fieldexists("mii_ang_ucard", "uniacid");
goto HMr5t;
nZjYK:
Jfseb:
goto KXjNs;
sdb1K:
pdo_query("ALTER TABLE " . tablename("mii_ang_mcard") . " ADD COLUMN `mcard_name` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '会员等级名称' AFTER `level`;");
goto J98yl;
Dcjh4:
$PfAY7 = pdo_fieldexists("mii_ang_info", "is_pay");
goto xQQhY;
qnjoT:
if ($x0Ijg) {
    goto UcAW3;
}
goto rhc3r;
Smc7c:
$dj8ZJ = pdo_fieldexists("mii_ang_order", "card_on");
goto k0FOg;
oRG9b:
DW7ey:
goto ITiz0;
rWSZQ:
$sql = "CREATE TABLE `ims_mii_ang_timetemplate` (  `tid` int(10) unsigned NOT NULL AUTO_INCREMENT,  `uniacid` int(10) unsigned NOT NULL,  `template_name` varchar(16) DEFAULT NULL,  `start` varchar(10) NOT NULL,  `end` varchar(10) NOT NULL,  `timeinterval` int(3) unsigned NOT NULL,  `rest_start` varchar(10) NOT NULL,  `rest_end` varchar(10) NOT NULL,  `rest_week` varchar(60) NOT NULL,  PRIMARY KEY (`tid`),  KEY `idx_uniacid` (`uniacid`) USING BTREE) ENGINE=MyISAM DEFAULT CHARSET=utf8";
goto kv_Ae;
tjSpR:
pdo_query(" ALTER TABLE " . tablename("mii_ang_info") . " ADD COLUMN `msg_roof` tinyint(1) UNSIGNED NULL DEFAULT 1 COMMENT '推送平台1,公众平台，2小程序平台' AFTER `openid`;");
goto T4Ptf;
kgOoi:
$a4Rup = pdo_fieldexists("mii_ang_paylog", "addtime");
goto jbhh4;
jYJRC:
xIxId:
goto rmr9Y;
iaKiY:
pdo_run($sql);
goto u9AW8;
VBlFI:
QxBa1:
goto D5ABt;
zhUrF:
pdo_query("ALTER TABLE " . tablename("mii_ang_setting") . " ADD COLUMN `sms_note` tinyint(1) UNSIGNED NOT NULL AFTER `appsecret`;");
goto fLv19;
cDCxo:
RtgY8:
goto AZX4q;
yFCe9:
$avhrX = pdo_fieldexists("mii_ang_order", "card_id");
goto Fvfz1;
uUhbL:
pdo_query("ALTER TABLE " . tablename("mii_ang_order") . " ADD COLUMN `ok_time` int(10) UNSIGNED NOT NULL COMMENT '完成时间' AFTER `order_type`;");
goto aplTL;
KNRbc:
eBbMT:
goto KRTFA;
u9AW8:
HqEWN:
goto b0K86;
sOsR8:
jDoR8:
goto wWc67;
YZRpr:
pdo_query("ALTER TABLE " . tablename("mii_ang_ucard") . " ADD COLUMN `card_info` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '卡券信息' AFTER `card_on`;");
goto oRG9b;
zdA5H:
if ($TdWFt) {
    goto NXeN6;
}
goto Ok2wn;
Ea1na:
if ($qjgPS) {
    goto HixBm;
}
goto Z8rjO;
BA9lb:
if ($FH8Rr) {
    goto wqs2q;
}
goto DeTFa;
UQSXC:
pdo_query("ALTER TABLE " . tablename("mii_ang_ucard") . " ADD COLUMN `uid` int(10) UNSIGNED NOT NULL AFTER `uniacid`;");
goto jlEvE;
m8LeP:
if ($PQENz) {
    goto X6N0e;
}
goto zhUrF;
Vdk6Z:
Eoitz:
goto lga2s;
DAjWt:
$PQENz = pdo_fieldexists("mii_ang_setting", "sms_note");
goto EeZSC;
b416D:
inKRy:
goto z8if8;
Z8rjO:
$sql = "CREATE TABLE `ims_mii_ang_mcard_info` (  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  `uniacid` int(10) unsigned NOT NULL,  `status` tinyint(1) NOT NULL COMMENT '会员卡状态',  `activation` tinyint(1) NOT NULL COMMENT '是否开启激活收费',  `activation_money` decimal(10,2) NOT NULL COMMENT '激活会员卡所需费用',  `recharge_discount` tinyint(1) NOT NULL COMMENT '是否开启充值优惠',  `recharge_discount_info` varchar(3000) NOT NULL COMMENT '充值条件组信息',  `islevel` tinyint(1) NOT NULL COMMENT '是否开启会员等级',  `default_mcard_level_name` varchar(32) NOT NULL COMMENT '默认会员名称',  `default_mcard_level_discount` decimal(10,0) NOT NULL COMMENT '默认会员折扣',  `member_level_info` varchar(3000) NOT NULL COMMENT '会员组信息',  `description` text NOT NULL COMMENT '会员卡描述',  PRIMARY KEY (`id`)) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='会员卡'";
goto UVGN9;
tK_X2:
if ($TSXXt) {
    goto C5G7B;
}
goto MYgg9;
AynrW:
$Yvv8B = pdo_fieldexists("mii_ang_ucard", "uid");
goto zg12Q;
vfSls:
if ($sYvhb) {
    goto FhKP8;
}
goto GRqaO;
Reb1z:
if ($Z5g7J) {
    goto fGf9q;
}
goto M0L4Y;
etBsR:
$PVEE0 = pdo_fieldexists("mii_ang_ucard", "cid");
goto zGuXU;
jsZwO:
if ($iBmRc) {
    goto ZsiRA;
}
goto p0CyW;
EeZSC:
if ($PQENz) {
    goto L5Bpv;
}
goto Ecw0s;
CUooo:
$R0GN1 = pdo_fieldexists("mii_ang_order", "order_type");
goto Igg_E;
aplTL:
btPXr:
goto jXxc9;
X2V_1:
s2I9L:
goto Kkzs9;
kpJ_m:
if ($J1w3i) {
    goto NMhcN;
}
goto oycMw;
w404V:
function upfunc()
{
    goto mkWYj;
    kngUM:
    $miiclass->build_array_php($indexmenu, "indexmenu", "/public/site/", $_W["uniacid"]);
    goto JAFFd;
    Nvm3t:
    E4uDK:
    goto CW2O0;
    CW2O0:
    $data = array("webinfo" => $webinfo, "ad" => $ad, "men" => $men, "hot" => $hot, "adinfo" => $adinfo);
    goto Sm77y;
    KJfW2:
    dyy7W:
    goto Rhkyq;
    mkWYj:
    global $_W;
    goto ucSR8;
    QifG0:
    if ($webinfo["adinfo"]) {
        goto aaK98;
    }
    goto fqkri;
    tvhiw:
    goto D5Gqh;
    goto KJfW2;
    YJupG:
    $adinfo = json_decode($webinfo["adinfo"], true);
    goto Nvm3t;
    Fwm0u:
    $indexmenu = pdo_fetchall("SELECT  menutype,name,font_color,selectfont_color,url,imageurl,selectimageurl FROM" . tablename("mii_ang_menu") . " WHERE uniacid=:uniacid AND menutype=:menutype ORDER BY orderid DESC", array(":uniacid" => $_W["uniacid"], "menutype" => "INDEX"));
    goto w5YKu;
    Rhkyq:
    $up = pdo_update("mii_ang_siteinfo", array("siteinfo" => $siteinfo, "indexmenu" => $indexmenudata, "bottommenu" => $bottommenudata), array("uniacid" => $_W["uniacid"]));
    goto ce__o;
    w5YKu:
    $bottommenu = pdo_fetchall(" SELECT  menutype,name,font_color,selectfont_color,url,imageurl,selectimageurl FROM" . tablename("mii_ang_menu") . " WHERE uniacid=:uniacid AND menutype=:menutype ORDER BY orderid DESC", array(":uniacid" => $_W["uniacid"], "menutype" => "BOTTOM"));
    goto QifG0;
    Q1Lnm:
    $miiclass->build_array_php($data, "siteinfo", "/public/site/", $_W["uniacid"]);
    goto kngUM;
    ucSR8:
    $webinfo = pdo_get("mii_ang_info", array("uniacid" => $_W["uniacid"]));
    goto QdBWl;
    c9Jtc:
    $men = pdo_fetchall(" SELECT id,categoryname,bg_color FROM" . tablename("mii_ang_class") . " WHERE uniacid=:uniacid AND ishide=:ishide ORDER BY category_order DESC LIMIT 4", array(":uniacid" => $_W["uniacid"], ":ishide" => "1"));
    goto kZuJw;
    Sm77y:
    $siteinfo = json_encode($data);
    goto vfAFD;
    kZuJw:
    $hot = pdo_fetchall("SELECT id,goodsname,titlepic,price FROM" . tablename("mii_ang_goods") . " WHERE uniacid=:uniacid AND grounding=:grounding AND ishot=:ishot ORDER BY orderid DESC", array(":uniacid" => $_W["uniacid"], ":grounding" => "1", ":ishot" => "1"));
    goto Fwm0u;
    Hcced:
    if (!empty($isdata)) {
        goto dyy7W;
    }
    goto c30OD;
    ce__o:
    D5Gqh:
    goto sjxcK;
    fXSB3:
    $bottommenudata = serialize($bottommenu);
    goto HynSP;
    en72y:
    aaK98:
    goto YJupG;
    vfAFD:
    $indexmenudata = serialize($indexmenu);
    goto fXSB3;
    NzL1W:
    goto E4uDK;
    goto en72y;
    J7Ey8:
    $miiclass = new miiclass();
    goto Q1Lnm;
    fqkri:
    $adinfo = array("empty" => "yes");
    goto NzL1W;
    c30OD:
    $ins = pdo_insert("mii_ang_siteinfo", array("uniacid" => $_W["uniacid"], "siteinfo" => $siteinfo, "indexmenu" => $indexmenudata, "bottommenu" => $bottommenudata));
    goto tvhiw;
    HynSP:
    include_once MODULE_ROOT . "/mii/class/mii.class.php";
    goto J7Ey8;
    QJ_LY:
    $isdata = pdo_get("mii_ang_siteinfo", array("uniacid" => $_W["uniacid"]), array("id"));
    goto Hcced;
    JAFFd:
    $miiclass->build_array_php($bottommenu, "bottommenu", "/public/site/", $_W["uniacid"]);
    goto QJ_LY;
    QdBWl:
    $ad = pdo_fetchall("SELECT imgurl,linkgoodsid FROM " . tablename("mii_ang_ad") . "WHERE uniacid=:uniacid AND term >= :term ORDER BY orderid DESC", array(":uniacid" => $_W["uniacid"], ":term" => $_W["timestamp"]));
    goto c9Jtc;
    sjxcK:
}
goto WxvGs;
hPJ42:
if ($iJXQm) {
    goto s2I9L;
}
goto ktMzA;
SO_I2:
pdo_query("ALTER TABLE " . tablename("mii_ang_book") . " ADD COLUMN `techid` int(10) UNSIGNED NOT NULL AFTER `address`;");
goto U8c97;
KFA7_:
$nPhux = pdo_fieldexists("mii_ang_ucard", "use");
goto K8fpw;
BHZTl:
pdo_query("ALTER TABLE " . tablename("mii_ang_order") . " ADD COLUMN `card_on` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '卡券编号' AFTER `card_id`");
goto qC_7H;
rjrOA:
if ($ThJmI) {
    goto D9uNq;
}
goto FY0cM;
b4VAK:
if ($BtNuT) {
    goto pyCoX;
}
goto bLv8S;
kL4Fe:
pdo_query("ALTER TABLE " . tablename("mii_ang_ucard") . " ADD COLUMN `cid` int(10) UNSIGNED NOT NULL AFTER `uid`;");
goto J6tx_;
OYyiI:
pdo_query("ALTER TABLE " . tablename("mii_ang_order") . " ADD COLUMN `order_type` tinyint(1) UNSIGNED NOT NULL COMMENT '1:免费预约2:支付预约' AFTER `pay_time`;");
goto WeUry;
U1Bwy:
pdo_query("ALTER TABLE " . tablename("mii_ang_ucard") . " ADD COLUMN `uniacid` int(10) UNSIGNED NOT NULL AFTER `id`;");
goto UFFQ7;
F6j9e:
pdo_query("ALTER TABLE " . tablename("mii_ang_order") . " MODIFY COLUMN `orderid` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '订单编号' AFTER `uniacid`;");
goto lZLo3;
qC_7H:
Q43Un:
goto VyG9K;
r9j1Z: